
'''添加计数点击次数:'''
from nicegui import ui

with ui.button('click me!',on_click=lambda :badge.set_text(int(badge.text)+1)):
    badge = ui.badge('0',color='red').props('floating')

'''提示框
ui.notify('Hi!', close_button='OK')  # 有关闭按钮:文本为ok
'''